<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="OrderNavCtrl"></ul>

<div class="set_box">
  <h1 class="set_title"><!--订金单详情-->{{language.TIPS_DEPOSIT_RECORD_DETAIL}}
    <span class="title_btn_group"> 
     <a class="title_btn" href="javascript:void(0);"  ng-click="return_money(DepositDetail.record);" ng-show="is_return"><!--退款-->{{language.TIPS_RETURN_MONEY}}</a>
     <a class="title_btn" href="javascript:void(0);" ng-click="come_back();"><!--关闭-->{{language.ACT_CLOSE}}</a>

   </span></h1>
   <div class="set_cont detail_page" ng-swipe-right="come_back();" >
    <form class="detail_form">
     <p class="title">
       <!--基本信息-->{{language.TIPS_BASIC_INFORMATION}}
     </p>	
     <table class="detail_table">
      <tr>
        <td class="name"><!--单据编号-->{{language.TIPS_INVENTORY_DOC_CODE}}：</td>
        <td class="val">{{DepositDetail.record.record_code}}</td>
        <td class="name"><!--日期-->{{language.TIPS_RECEIPT_DATE}}：</td>
        <td class="val">{{DepositDetail.record.record_time}}</td>
      </tr>
      <tr>
        <td class="name"><!--顾客-->{{language.TIPS_CUSTOMER_NAME}}：</td>
        <td class="val">{{DepositDetail.record.customer_code}}</td>
        <td class="name"><!--手机-->{{language.TIPS_TEL}}：</td>
        <td class="val">{{DepositDetail.record.phone}}</td>
      </tr>
      <tr>
        <td class="name"><!--经手店员-->{{language.TIPS_FIX_DIANYUAN}}：</td>
        <td class="val">{{DepositDetail.record.user_name}}</td>
        <td class="name"><!--联系地址-->{{language.TIPS_FIX_ADDRESS}}：</td>
        <td class="val">{{DepositDetail.record.address}}</td>
      </tr>
      <tr>
        <td class="name"><!--订金金额-->{{language.TIPS_DEPOSIT_MONEY}}：</td>
        <td class="val">{{DepositDetail.record.deposit}}</td>
        <td class="name"><!--使用金额-->{{language.TIPS_USE_MONEY}}：</td>
        <td class="val">{{DepositDetail.record.consume_money}}</td>
      </tr>
      <tr>
        <td class="name"><!--当前余额-->{{language.TIPS_CURRENT_BALANCE}}：</td>
        <td class="val">{{DepositDetail.record.balance_money}}</td>
        <td class="name"><!--状态-->{{language.TIPS_STATUS}}：</td>
        <td class="val">{{DepositDetail.record.state | deposit_status}}</td>
      </tr>
      <tr>
        <td class="name"><!--订金退款单号-->{{language.TIPS_DEPOSIT_RETURN_RECORD_CODE}}：</td>
        <td class="val">{{DepositDetail.record.return_record_code}}</td>
        <td class="name"><!--退款金额-->{{language.TIPS_CASHIER_REFUNDS_MONEY}}：</td>
        <td class="val">{{DepositDetail.record.return_money}}</td>
      </tr>
      <tr colspan="2">
        <td class="name"><!--备注-->{{language.TIPS_CASHIER_MEMO}}：</td>
        <td class="val">{{DepositDetail.record.remark}}</td>
      </tr>
    </table>
  </form>
  <form class="detail_form">
    <p class="title"><!--商品明细-->{{language.TIPS_RECEIPT_DETAILED}}</p>
    <table class="goods_table">
      <tr>
        <th><!--商品代码-->{{language.TIPS_REPORT_GOODS_CODE}}</th>
        <th><!--商品名称-->{{language.TIPS_REPORT_GOODS_NAME}}</th>
        <th><!--颜色名称-->{{language.TIPS_COLOR_NAME}}</th>
        <th><!--尺寸名称-->{{language.TIPS_SIZE_NAME}}</th>
        <th><!--参考价-->{{language.TIPS_CASHIER_REFER_PRICE}}</th>
        <th><!--折扣-->{{language.TIPS_CASHIER_DISCOUNT}}</th>
        <th><!--单价-->{{language.TIPS_CASHIER_PRICE}}</th>
        <th><!--数量-->{{language.TIPS_CASHIER_NUM}}</th>
        <th><!--金额-->{{language.TIPS_CASHIER_MONEY}}</th>
      </tr>
      <tr ng-repeat="p in DepositDetail.goods_detail">
        <td>{{p.GoodsCode}}</td>
        <td>{{p.GoodsName}}</td>
        <td>{{p.ColorName}}</td>
        <td>{{p.SizeName}}</td>
        <td>{{p.refer_price}}</td>
        <td>{{p.rebate}}</td>
        <td>{{p.price|number:2}}</td>
        <td>{{p.num}}</td>
        <td>{{p.money|number:2}}</td>
      </tr>
    </table>
    <p class="title"><!--结算明细-->{{language.TIPS_CASHIER_BILLING_DETAILE}}</p>
    <table class="goods_table">
      <tr>
        <th><!--结算方式-->{{language.TIPS_CASHIER_PAYMENTS_MEANS}}</th>
        <th><!--订金金额-->{{language.TIPS_DEPOSIT_MONEY}}</th>
        <th><!--退款金额-->{{language.TIPS_CASHIER_REFUNDS_MONEY}}</th>
        <th><!--备注-->{{language.TIPS_CASHIER_MEMO}}</th>
      </tr>
      <tr ng-repeat="check in DepositDetail.checklist">
        <td>{{check.check_name}}</td>
        <td>{{check.deposit_money|number:2}}</td>
        <td>{{check.return_money|number:2}}</td>
        <td>{{check.remark}}</td>
      </tr>
    </table>
    <p class="title"><!--流水明细-->{{language.TIPS_CASHIER_WATER_DETAILE}}</p>
    <table class="goods_table">
      <tr>
        <th><!--操作时间-->{{language.TIPS_OPERATION_TIME}}</th>
        <th><!--操作类型-->{{language.TIPS_OPERATION_TYPE}}</th>
        <th><!--期初金额-->{{language.TIPS_REPORT_INITAL_MONEY}}</th>
        <th><!--变化金额-->{{language.TIPS_CHANGE_NUM}}</th>
        <th><!--期末金额-->{{language.TIPS_REPORT_FINAL_MONEY}}</th>
        <th><!--经手人-->{{language.TIPS_OPERATION_PERSON}}</th>
        <th><!--关联单据-->{{language.TIPS_INVENTORY_ASSOCIATE_NUMBER}}</th>
        <th><!--备注-->{{language.TIPS_CASHIER_MEMO}}</th>
      </tr>
      <tr ng-repeat="l in DepositDetail.lsz">
        <td>{{l.operation_time}}</td>
        <td>{{l.operation_type | operate_type}}</td>
        <td>{{l.qichu_money|number:2}}</td>
        <td>{{l.change_money|number:2}}</td>
        <td>{{l.qimo_money|number:2}}</td>
        <td>{{l.user_name}}</td>
        <td>{{l.relation_code}}</td>
        <td>{{l.remark}}</td>
      </tr>
    </table>
    <p class="title"><!--附加明细-->{{language.TIPS_CASHIER_ADDTION_DETAILE}}</p>
    <table class="goods_table">
      <tr>
        <th><!--制单人-->{{language.TIPS_MAKE_RECORD_PERSON}}</th>
        <th><!--制单日期-->{{language.TIPS_MAKE_RECORD_TIME}}</th>
        <th><!--最近修改人-->{{language.TIPS_MODIFY_RECORD_PERSON}}</th>
        <th><!--最近修改日期-->{{language.TIPS_MODIFY_RECORD_TIME}}</th>
        <th><!--收款人-->{{language.TIPS_BENEFICIARY}}</th>
        <th><!--收款日期-->{{language.TIPS_DATE_OF_RECEIPT}}</th>
        <th><!--退款人-->{{language.TIPS_REFUND_PERSON}}</th>
        <th><!--退款日期-->{{language.TIPS_REFUND_TIME}}</th>
      </tr>
      <tr>
        <td>{{DepositDetail.record.is_made_person}}</td>
        <td>{{DepositDetail.record.is_made_time}}</td>
        <td>{{DepositDetail.record.modify_person}}</td>
        <td>{{DepositDetail.record.modify_time}}</td>
        <td>{{DepositDetail.record.is_payee_person}}</td>
        <td>{{DepositDetail.record.is_payee_time}}</td>
        <td>{{DepositDetail.record.return_person}}</td>
        <td>{{DepositDetail.record.return_time}}</td>
      </tr>
    </table>   
  </form>
</div>
</div>